package com.ibangnuo.manage.dao;

import com.ibangnuo.framework.domain.Agent;
import com.ibangnuo.framework.domain.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @Author: wwy
 * @Date: 2019-12-27 11:59
 */
public interface UserRepository extends JpaRepository<User,String> {

    User findByUsernameAndPassword(String username,String password);

    User findByUsername(String username);

    User findByUsernameAndType(String username,String type);

    User findByUsernameAndIsDelete(String username,Integer isDelete);

    User findByUsernameAndIsDeleteAndStatus(String username,Integer isDelete,Integer status);


}
